#include "urlfilter.h"
bool check_hash_url(std::string& aUrl); 
namespace http
{
	namespace server
	{

		bool	urlfilter::filter(std::string& aRequest,  int& aCode)
		{
			std::string x=aRequest.substr(0,5);
			if(x!="/url=")
				return false;
			std::string url=aRequest.substr(5,aRequest.length()-5);
			if(::check_hash_url(url))
				aCode=reply::forbidden;
			else
				aCode=reply::not_found;
			return true;
		}
	}
}
 